class UserMailer < ActionMailer::Base
  default from: "admin@library.com"

  def reminder_email(transaction)
    @transaction = transaction
    @user = transaction.user
    @book = transaction.book

    mail(to: @user.email, subject: t('.please_return_borrowed_books'))
  end

end
